﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
    CodeFile="VIPDeptMaintain.aspx.vb" Inherits="WebForm_Mail_VIPDeptMaintain" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:HiddenField ID="hiUID" runat="server" />
            <table border="1" width="900px">
                <tr>
                    <td style="text-align: center" colspan="4">
                        <asp:Label ID="lblTitle" runat="server" meta:resourcekey="lblTitle" Font-Bold="True"
                            Font-Size="24px"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="left">
                        <asp:Label ID="lblDept" runat="server" meta:resourcekey="lblDept"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlDept" runat="server" DataTextField="DeptName"
                            DataValueField="DeptID">
                        </asp:DropDownList>
                    </td>
                    <td align="left">
                        <asp:Label ID="lblEmp" runat="server" meta:resourcekey="lblEmp"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtEmp" runat="server"></asp:TextBox>
                        <asp:Button ID="btnOpen" runat="server" Text="..." />
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center" colspan="4">
                        <asp:Button ID="btnInsert" runat="server" meta:resourcekey="btnInsert"></asp:Button>
                        <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery"></asp:Button>
                    </td>
                </tr>
                <tr>
                  <td colspan="4">
                   <asp:Panel ID="plInsert" runat="server" BackColor="#E7FEC2" Height="100px"
                            Width="600px">
                            <table border="1" width ="600px">
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblDept0" runat="server" meta:resourcekey="lblDept"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:DropDownList runat="server" ID="ddlOAFactoryIns" DataTextField="DeptName" DataValueField="DeptID">
                                        </asp:DropDownList>
                                    </td>
                                    <td style="text-align: right">
                                       
                                        <asp:Label ID="lblEmp0" runat="server" meta:resourcekey="lblEmp"></asp:Label>
                                       
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtEmp_IDIns" runat="server" Width="68px"></asp:TextBox>
                                        <asp:Button ID="btnOpenIns" runat="server" Text="..." />
                                    </td>
                                   
                                </tr>
                                <tr>
                                    <td align="center" colspan="8">
                                        <asp:Button ID="btnSave" runat="server"  meta:resourcekey="btnSave"/>
                                        <asp:Button ID="btnCancel" runat="server"  meta:resourcekey="btnCancel" />
                                    </td>
                                </tr>
                            </table>
                            <br />
                        </asp:Panel>
                         <ajaxToolkit:ModalPopupExtender ID="mpIns" runat="server"  PopupDragHandleControlID="plInsert"
                            PopupControlID="plInsert" TargetControlID ="btnInsert" 
                            CancelControlID="btnCancel" X="20" Y="50" BehaviorID="mpIns">
                        </ajaxToolkit:ModalPopupExtender>
                  
                  </td>
                </tr>
                 
                <tr style="vertical-align: text-top">
                    <td colspan="4">
                        <TServerControl:TGridView ID="gvVipDept" runat="server" Visible="false" AllowHoverEffect="False"
                            AllowHoverSelect="False" AllowPaging="True" AutoGenerateColumns="False" ShowFooterWhenEmpty="False"
                            ShowHeaderWhenEmpty="True" SkinID="pager" TotalRowCount="0" Width="800px">
                            <Columns>
                                <asp:TemplateField>
                                    <EditItemTemplate>
                                        <asp:Button ID="btnSave" runat="server" CommandName="Update" meta:resourcekey="btnSave">
                                        </asp:Button>
                                        <asp:Button ID="btnCancel" runat="server" CommandName="Cancel" meta:resourcekey="btnCancel">
                                        </asp:Button>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Button ID="btnEdit" runat="server" CommandName="Edit" meta:resourcekey="btnEdit">
                                        </asp:Button>
                                        
                                    </ItemTemplate>
                                </asp:TemplateField>
                                  <asp:TemplateField>
                                    <EditItemTemplate>
                                        
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        
                                        <asp:Button ID="btnDelette" runat="server" CommandName="Delete" meta:resourcekey="btnDelette"  
                                            CommandArgument='<%# Bind("Dept_ID") %>'></asp:Button>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField meta:resourcekey="gvDept">
                                    <ItemTemplate>
                                        <asp:Label ID="lblDept_ID" runat="server" Text='<%# Bind("Dept_ID") %>'></asp:Label>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Dept_Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField meta:resourcekey="gvEmp">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtEmp_ID" runat="server" Text='<%# Bind("Emp_ID") %>'></asp:TextBox>
                                        <asp:Button ID="btnOpengv" runat="server" CommandName="Open" Text="..." />
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblEmp_ID" runat="server" Text='<%# Bind("Emp_ID") %>'></asp:Label>
                                         <asp:Label ID="lblName" runat="server" Text='<%# Bind("Emp_Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField meta:resourcekey="gvModiUID">
                                    <ItemTemplate>
                                        <asp:Label ID="lbliModiUID" runat="server" Text='<%# Eval("ChgName") %>' Width="68px"></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField meta:resourcekey="gvModiDate">
                                    <ItemTemplate>
                                        <asp:Label ID="lbliModiDate" runat="server" Text='<%# Eval("ChgDate") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataTemplate>
                                <asp:Label ID="lblEmpty" runat="server" ForeColor="Red" meta:resourcekey="lblEmpty"></asp:Label>
                            </EmptyDataTemplate>
                        </TServerControl:TGridView>
                        <asp:HiddenField ID="hiDBName" runat="server" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
